import request from '@/utils/request'

// 查询角色列表
export function findProductCategory(pageNum,pageSize) {
  return request({
    url: '/product/productCategory/findProductCategory?pageNum='+pageNum+'&pageSize='+pageSize,
    method: 'get',
  })
}


export function delect(id) {
  return request({
    url: '/product/productCategory/delect?id='+id,
    method: 'post',
    data:id
  })
}


export function findProductCategoryEr(id,pageNum,pageSize) {
  return request({
    url: '/product/productCategory/findProductCategoryEr?id='+id+'&pageNum='+pageNum+'&pageSize='+pageSize,
    method: 'get',
  })
}



export function updatenavStatus(id,navStatus) {
    return request({
        url: '/product/productCategory/updatenavStatus?id='+id+'&navStatus='+navStatus,
        method: 'get'
    })
}




export function updateshowStatus(id,showStatus) {
    return request({
        url: '/product/productCategory/updateshowStatus?id='+id+'&showStatus='+showStatus,
        method: 'get'
    })
}
